{% extends "base.jinja" %}

{% block title %}{{user}}的个人空间{% endblock %}
{% block keywords %}{{user}},{{site_options.keyword}}{% endblock %}
{% block description %}{{user}}的个人空间{% endblock %}

{% block css %},user.css{% endblock %}

{% block pagetype %}user-setting{% endblock %}

{% block main %}
    {%- include 'user/head.jinja' -%}
    
    <div class="layout p-usetting" id="u-setting">
        <div class="us-side">
            <ul>
                {% if user_home.group_id ==3 %}
                <li><a href="/u/setting/biz/">商家设置</a></li>
                {% endif %}
                <li><a href="/u/setting/info/">个人设置</a></li>
            </ul>
        </div>
        <div class="us-main">
            <div class="us-bizcate" id="us-bizcate">
                <form method="post">
                    <table>
                        <tbody>
                            {% for cate in biz_cate_data %}
                            <tr data-cid="{{cate.id}}" class="">
                                <td width="300">
                                    <input type="text" class="inp-text" value="{{cate.name}}" />
                                </td>
                                <td>
                                    <a href="javascript:;" class="inp-btn-pk" data-action="save">保存</a>
                                    <a href="javascript:;" class="inp-btn-gray" data-action="remove">删除</a>
                                </td>
                            </tr>
                            {% endfor %}
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="2">
                                    <a href="javascript:;" class="inp-btn-gray" data-action="add">增加分类</a>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
{% endblock %}

{% block script %}
<script>
seajs.use('page/user/setting', function(p){p.render();});
</script>
{% endblock %}